﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CommunityCredit.Components
{
    /// <summary>
    /// Represents an earner.
    /// </summary>
    public class Earner
    {
        #region Properties and Fields

        /// <summary>
        /// The earner's first name.
        /// </summary>
        public string FirstName { get; set; }

        /// <summary>
        /// The earner's last name.
        /// </summary>
        public string LastName { get; set; }

        /// <summary>
        /// The earner's email.
        /// </summary>
        public string Email { get; set; }

        #endregion

        #region Constructors

        /// <summary>
        /// Public constructor.
        /// </summary>
        /// <param name="firstName">The earner's first name.</param>
        /// <param name="lastName">The earner's last name.</param>
        /// <param name="email">The earner's email.</param>
        public Earner(string firstName, string lastName, string email)
        {
            this.FirstName = firstName;
            this.LastName = lastName;
            this.Email = email;
        }

        #endregion
    }
}
